package com.xindacloud.sms.portal.dto;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "登录用户DTO")
public class LoginParamDTO implements Serializable {


    @ApiModelProperty(value = "登录用户名", name = "username", required = true)
    @NotBlank(message = "用户名不能为空")
    String username;

    @ApiModelProperty(value = "登录用户密码", name = "password", required = true)
    @NotBlank(message = "密码不能为空")
    String password;

    @ApiModelProperty(value = "验证码", name = "verificationCode", required = true)
    @NotBlank(message = "验证码不能为空")
    String verificationCode;

}
